package com.lms.consumer.controller;

import com.lms.consumer.client.ProviderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-01-04 13:58
 * @Description: ${Description}
 */
@RestController
public class ConsumerController {

    @Resource
    private ProviderFeign providerFeign;

    @RequestMapping ("/getInfoByFeign")
    public String getInfoByFeign(){

        String info = providerFeign.getProviderInfo();
        System.out.println(info);
        return info;
    }



}
